<%@ page import="connect.HttpRequest" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>org1Info</title>
</head>
<body onload="confirmwindow()">
<%-- 头部 --%>
<jsp:include page="top.jsp"/>
<section class="service_section layout_padding">
    <div class="container">
        <div class="heading_container">
            <h2>
                查询中，请等待...
            </h2>
        </div>
    </div>
</section>

<%
    // 设置获取注册时的编码为UTF-8
    request.setCharacterEncoding("UTF-8");
    // 获取上一个页面传过来的订单号
    String id = request.getParameter("name");
    System.out.println("id" + id);
%>
<script>
    function confirmwindow(){
        <%
            String s = HttpRequest.sendGet("http://localhost:3000/callFabric/f5","l="+id);
        %>
    }
    const info=JSON.stringify(<%=s%>);
    alert('商品信息：'+info);
    window.location.href="org1.jsp";
</script>
</body>
</html>
